home *** CD-ROM | disk | FTP | other *** search
- Path: peer-news.britain.eu.net!psinntp!psinntp!psinntp!pipeline!not-for-mail
- From: gordo@nyc.pipeline.com (Gordon Krefting)
- Newsgroups: comp.lang.c++
- Subject: Re: Simple DLL Problem
- Date: 9 Jan 1996 13:52:23 -0500
- Organization: The Pipeline
- Message-ID: <4cudh7$jpq@pipe11.nyc.pipeline.com>
- References: <30f27530.80885051@news.internet-eireann.ie>
- NNTP-Posting-Host: pipe11.nyc.pipeline.com
- X-PipeUser: gordo
- X-PipeHub: nyc.pipeline.com
- X-PipeGCOS: (Gordon Krefting)
- X-Newsreader: The Pipeline v3.4.0
-
- On Jan 09, 1996 14:02:30 in article <Simple DLL Problem>,
- 'mkelly@vocean.ie' wrote:
-
-
- >Problem Writing a Simple DLL!
- >
- >Hi,
- >
- >Can anyone tell me where I am going wrong with the following Visual
- >C++ code?
- >
- >Below is the code for my first DLL written in VC++ 1.5. The code
- >compiles and a DLL is built, but when it is called from the calling
- >Visual Basic program, I get the error
- > æ Sub or Function not defined æ
- >
- >It would appear that the DLL file is being located, but that the
- >function is not being recognised.
- >The DLL code is called from a working VB program and is properly
- >declared therein as an API function.
- >I have listed the Compiler and Linker options after the code if that
- >is of Help.
- >Thanks
- >
- >Martin
- >
- [SNIP]
- >------------------------------ mySum.def
- LIBRARY MYSUM
- EXETYPE WINDOWS
- CODE PRELOAD MOVEABLE DISCARDABLE
- DATA PRELOAD MOVEABLE SINGLE
- HEAPSIZE 1024
- EXPORTS
- WEP @1 RESIDENTNAME
- MySum @2
- ^^^^^^^^^^
- Try adding this!
-
- HTH
- gordo
-